package com.ly.web.controller.erp;

import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingCalculateEntity;
import com.ly.heart.service.IKingCalculateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 金蝶，先进先出核算列表(没有期初和期末) 前端控制器
 * </p>
 * @author WuZH
 * @since 2024-08-11
 */
@RestController
@RequestMapping ("/heart/kingCalculate")
public class KingCalculateController {
    @Resource
    private IKingCalculateService kingCalculateService;

    @GetMapping ("list")
    public AjaxResult list (KingCalculateEntity kingCalculateEntity) {

        return AjaxResult.success ();
    }

    @PostMapping ("/saveSingle")
    public AjaxResult saveSingle () {
        return kingCalculateService.saveSingle ();
    }
}
